<?php
namespace app\common\model;

use think\Model;
use app\common\model\AuthType;
class AuthRule extends Model
{
    public function getStatusAttr($value){
        $arr = [0=>'禁用',1=>'生效'];
        return $arr[$value];
    }
    
    public function getTypeAttr($id){
        return AuthType::get($id)['name'];
    }

}